﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="DepartmentDetails.aspx.cs" Inherits="AB.ServiceDirectory.Design.DepartmentsMaintenance.DepartmentDetails" %>

<%@ Register TagPrefix="wuc" TagName="AddressLookupPopup" Src="~/WebUserControls/Lookup/AddressLookup.ascx" %>
<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<%@ Register TagPrefix="wuc" TagName="BusinessLookupPopup" Src="~/WebUserControls/Lookup/TypeOfBusinessLookup.ascx" %>
<%@ Register TagPrefix="wuc" TagName="DialogBox" Src="~/WebUserControls/DialogBox.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2> Departments Detail</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <asp:HiddenField ID="HiddenFieldDirectorateId" runat="server" />
    <asp:HiddenField ID="HiddenFieldDepartmentId" runat="server" />
    <asp:HiddenField ID="HiddenFieldDepartmentName" runat="server" />
    <div class="grid740 simplebox relative">
        <wuc:DialogBox ID="DialogBox" runat="server" />
        <div id="tabs">
            <ul>
                <li>
                    <asp:HyperLink ID="LinkDetails01" runat="server" NavigateUrl="#DetailsPanel01">Details</asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink ID="LinkDetails02" runat="server" NavigateUrl="#DetailsPanel02" Visible="false">Teams</asp:HyperLink>
                </li>
            </ul>
            <span class="top-right-cornor">
                <asp:Button CssClass="st-button" ID="ButtonInactive" runat="server" Text="In-active"
                    CommandName="active" CausesValidation="False" OnCommand="ButtonInactive_Command"
                    Visible="True" />
                <asp:Button CssClass="st-button" ID="ButtonSave" runat="server" Text="Save" Enabled="False"
                    OnCommand="ButtonSave_Command" />
                <asp:Button CssClass="st-button" ID="ButtonBack" runat="server" Text="Back" CausesValidation="False"
                    OnClick="ButtonBack_Click" />
            </span>
            <asp:Panel runat="server" ID="DetailsPanel01" ClientIDMode="Static">
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelDepartmentName" runat="server" Text="Department Name" CssClass="st-labeltext level1 required"
                            AssociatedControlID="TextBoxDepartmentName">
                        </asp:Label>
                        <asp:TextBox ID="TextBoxDepartmentName" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredDepartmentName0" runat="server" ControlToValidate="TextBoxDepartmentName"
                            ErrorMessage="*" ForeColor="red" SetFocusOnError="True" Display="None"></asp:RequiredFieldValidator>
                        <asp:Label ID="LabelCheckName" runat="server" Text="" ForeColor="red"></asp:Label>
                    </div>
                    <div class="half last">
                        <asp:Label ID="LabelTypeOfBusiness" runat="server" Text="Type Of Business" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxTypeOfBusiness"></asp:Label>
                        <asp:TextBox ID="TextBoxTypeOfBusiness" runat="server" CssClass="st-forminput st-disable"
                            ReadOnly="True"></asp:TextBox>
                        <asp:LinkButton ID="LookupFullDescription" CssClass="hg-blue" CausesValidation="False"
                            runat="server" Text="Lookup" CommandName="business" OnCommand="LinkButton_Command" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="LabelShortDescription" runat="server" Text="Department Short Description"
                            CssClass="st-labeltext level1 required" AssociatedControlID="TextBoxShortDescription"></asp:Label>
                        <asp:TextBox ID="TextBoxShortDescription" CssClass="st-forminput" runat="server"
                            Width="200px" Rows="3" TextMode="MultiLine"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxShortDescription"
                            ErrorMessage="RequiredFieldValidator" ForeColor="Red" Display="None">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label2" runat="server" Text="SIC Code" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxSICCode"></asp:Label>
                        <asp:TextBox ID="TextBoxSICCode" runat="server" ReadOnly="True" CssClass="st-forminput st-disable"></asp:TextBox>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label3" runat="server" Text="Lead Contact" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxLeadContact"></asp:Label>
                        <asp:TextBox ID="TextBoxLeadContact" runat="server" ReadOnly="True" CssClass="st-forminput st-disable"></asp:TextBox>
                        <asp:LinkButton ID="LinkButtonLeadContact" CssClass="hg-blue" CausesValidation="False"
                            runat="server" Text="Lookup" CommandName="contact" OnCommand="LinkButton_Command" />
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label5" runat="server" Text="Department Full Description" CssClass="st-labeltext level1"
                            AssociatedControlID="TextBoxFullDescription"></asp:Label>
                        <asp:TextBox ID="TextBoxFullDescription" runat="server" CssClass="st-forminput" Width="200px"
                            TextMode="MultiLine" Rows="3"></asp:TextBox>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label6" runat="server" Text="Copy Address from" CssClass="st-labeltext level1"></asp:Label>
                        <asp:RadioButtonList ID="RadioButtonListAddress" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="RadioButtonListAddress_SelectedIndexChanged" RepeatDirection="Horizontal">
                            <asp:ListItem Value="Organization">Organization</asp:ListItem>
                            <asp:ListItem Value="Parent">Parent</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label7" runat="server" Text="Phone Number" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxPhoneNumber" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                        <div class="clear"></div>
                        <asp:CompareValidator ID="CompareValidatorPhoneNumber" runat="server" ErrorMessage="Phone number must be digits"
                            ControlToValidate="TextBoxPhoneNumber" Display="Dynamic" ForeColor="#CC0000"
                            Operator="DataTypeCheck" SetFocusOnError="True" Type="Integer"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label8" runat="server" Text="Address Line 1" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxAddressLine1" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label11" runat="server" Text="Fax" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxFax" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                        <div class="clear"></div>
                        <asp:CompareValidator ID="CompareValidatorFax" runat="server" ErrorMessage="Fax must be digits"
                            ControlToValidate="TextBoxFax" Display="Dynamic" ForeColor="#CC0000"
                            Operator="DataTypeCheck" SetFocusOnError="True" Type="Integer"></asp:CompareValidator>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label9" runat="server" Text="Address Line 2" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxAddressLine2" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label12" runat="server" Text="Email" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxEmail" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label10" runat="server" Text="Address Line 3" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxAddressLine3" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:Label ID="Label13" runat="server" Text="Web Address" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxWebAddress" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label14" runat="server" Text="Postcode" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxPostcode" runat="server" CssClass="st-forminput"></asp:TextBox>
                        <asp:LinkButton ID="LinkButtonPostcode" CssClass="hg-blue" CausesValidation="False"
                            runat="server" Text="Lookup" OnCommand="LinkButton_Command" CommandName="postcode" />
                    </div>
                    <div class="half last">
                        <asp:HiddenField ID="HiddenFieldBusinessId" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label15" runat="server" Text="Town/Village/City" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxTowVillageCity" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:HiddenField ID="HiddenFieldAddressId" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label16" runat="server" Text="County" CssClass="st-labeltext level1"></asp:Label>
                        <asp:TextBox ID="TextBoxCounty" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox>
                    </div>
                    <div class="half last">
                        <asp:HiddenField ID="HiddenFieldContactId" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="st-form-line-noleft">
                    <div class="half">
                        <asp:Label ID="Label17" runat="server" Text="Nation/Country" CssClass="st-labeltext level1"></asp:Label>
                        <asp:DropDownList ID="DropDownListNationCounty" runat="server" CssClass="st-forminput"
                            Width="200px" DataValueField="CountryId" DataTextField="CountryName">
                        </asp:DropDownList>
                    </div>
                    <div class="half last">
                        <asp:HiddenField ID="HiddenFieldCountryId" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="DetailsPanel02" runat="server" ClientIDMode="Static" Visible="false">
                <asp:UpdatePanel runat="server" ID="UpdatePanelDepartmentList">
                    <ContentTemplate>
                        <asp:PlaceHolder ID="HolderTeamList" runat="server"></asp:PlaceHolder>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
            <wuc:AddressLookupPopup ID="AddressLookupPopup" TextBoxPostcodeID="TextBoxPostcode"
                HiddenFieldAddressID="HiddenFieldAddressId" TextBoxAddressLine1ID="TextBoxAddressLine1"
                TextBoxAddressLine2ID="TextBoxAddressLine2" TextBoxAddressLine3ID="TextBoxAddressLine3"
                runat="server" />
            <wuc:ContactLookupPopup ID="ContactLookupPopup" runat="server" TextBoxResultID="TextBoxLeadContact"
                HiddenFieldResultID="HiddenFieldContactId" MaximumRows="5" />
            <wuc:BusinessLookupPopup ID="BusinessLookup" runat="server" TextBoxBusinessNameID="TextBoxTypeOfBusiness"
                TextBoxSicCodeID="TextBoxSICCode" HiddenFieldBusinessId="HiddenFieldBusinessId"
                MaximumRows="5" />
        </div>
    </div>
</asp:Content>
